Conversation
- Add `sugar opencode setup` command for one-command OpenCode configuration - Auto-detects OpenCode config file location - Adds sugar-tasks and sugar-memory MCP servers - Supports --dry-run, --yes, --no-memory, --no-tasks flags - Parses JSON/JSONC safely, preserves existing config - Fix misleading error messages in OpenCode client - Connection errors now clearly indicate server is unreachable - No longer says "server responded" when connection fails - Add memory slash commands to OpenCode plugin - /sugar-remember: Store learnings, decisions, preferences - /sugar-recall: Search memory for relevant context - /sugar-context: Load full project context at session start - Update documentation - README.md: Simplified OpenCode setup instructions - docs/user/opencode.md: Full setup command documentation
- Add 11 tests for `sugar opencode setup` command covering: - Config file discovery - Dry-run mode - MCP server addition - Existing config preservation - Idempotent behavior - Error handling for missing/malformed config - JSONC parsing - --no-memory and --no-tasks flags - Custom config path - Add 5 tests for OpenCodeClient error handling: - health_check success/failure/connection error - notify success/connection error - Update CHANGELOG for v3.7.0 with new features
* style: Fix black formatting issues * ci: Pin black version to ensure consistent formatting * fix: Update OpenCode setup tests to use --config flag for Windows compatibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v3.7.0 - OpenCode Integration
New Features
One-command OpenCode setup:
sugar opencode setupauto-configures OpenCode with Sugar MCP servers--dry-run,--yes,--no-memory,--no-tasksflagsMemory slash commands for OpenCode:
/sugar-remember- Store decisions, preferences, error patterns/sugar-recall- Search memory for relevant context/sugar-context- Load full project context at session startImproved error messages: Connection failures now show helpful messages instead of misleading "health check failed"
Bug Fixes
://as commentsCI/CD
Testing
Full Changelog: v3.6.0...develop